// CheckCommDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES

#if !defined(AFX_CHECKCOMMDLG_H__D0E3FEA1_AFDB_4233_B9FC_DCBF43B06538__INCLUDED_)
#define AFX_CHECKCOMMDLG_H__D0E3FEA1_AFDB_4233_B9FC_DCBF43B06538__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CCheckCommDlg dialog

class CCheckCommDlg : public CDialog
{
// Construction
public:
	int Count;
	int Count2;
	CCheckCommDlg(CWnd* pParent = NULL);	// standard constructor
	bool set_write10_date_moter(char loc_num,short address,int state_date,int position_date,int speed_date);
	bool run_motor(char loc_num,char run);
	
	CString myParity;
	CString myBaudRate;
	BYTE myCom;
//	static int Count;
// Dialog Data
	//{{AFX_DATA(CCheckCommDlg)
	enum { IDD = IDD_CHECKCOMM_DIALOG };
	CMSComm	m_comm;
	CString	m_Rceive;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCheckCommDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCheckCommDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnOpenComm();
	afx_msg void OnOnCommMscomm1();
	afx_msg void OnSend();
	afx_msg void OnCloseComm();
	afx_msg void OnClear();
	afx_msg void OnBM1();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnBM1D();
	afx_msg void OnBM2();
	afx_msg void OnBM2D();
	afx_msg void OnBM3();
	afx_msg void OnBM3D();
	afx_msg void OnBM4();
	afx_msg void OnBMD();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHECKCOMMDLG_H__D0E3FEA1_AFDB_4233_B9FC_DCBF43B06538__INCLUDED_)
